package mamikeji.liaowa.ui.activity.clock;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import mamikeji.liaowa.R;
import mamikeji.liaowa.ui.activity.BaseActivity;

public class ClockTypeActivity extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.relativeLayout_clock_type_1)
    public RelativeLayout relativeLayout_clock_type_1;//右边栏
    @BindView(R.id.relativeLayout_clock_type_2)
    public RelativeLayout relativeLayout_clock_type_2;//右边栏
    @BindView(R.id.relativeLayout_clock_type_3)
    public RelativeLayout relativeLayout_clock_type_3;//右边栏
    @BindView(R.id.relativeLayout_clock_type_4)
    public RelativeLayout relativeLayout_clock_type_4;//右边栏
    @BindView(R.id.relativeLayout_clock_type_5)
    public RelativeLayout relativeLayout_clock_type_5;//右边栏
    @BindView(R.id.relativeLayout_clock_type_6)
    public RelativeLayout relativeLayout_clock_type_6;//右边栏
    @BindView(R.id.relativeLayout_clock_type_7)
    public RelativeLayout relativeLayout_clock_type_7;//右边栏
    @BindView(R.id.relativeLayout_clock_type_8)
    public RelativeLayout relativeLayout_clock_type_8;//右边栏

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_clock_type);
        getBase();
        ButterKnife.bind(this);
        setTitleLeftBtn();
        setTitleName(R.string.clock_date_name);
    }

    @OnClick({
            R.id.relativeLayout_clock_type_1,
            R.id.relativeLayout_clock_type_2,
            R.id.relativeLayout_clock_type_3,
            R.id.relativeLayout_clock_type_4,
            R.id.relativeLayout_clock_type_5,
            R.id.relativeLayout_clock_type_6,
            R.id.relativeLayout_clock_type_7,
            R.id.relativeLayout_clock_type_8})
    @Override
    public void onClick(View view) {
        Intent intent = new Intent(ClockTypeActivity.this, ClockDateActivity.class);
        switch (view.getId()) {
            case R.id.relativeLayout_clock_type_1:
                intent.putExtra("Clock_Type","1");
                intent.putExtra("Clock_name","喝水");
                break;
            case R.id.relativeLayout_clock_type_2:
                intent.putExtra("Clock_Type","2");
                intent.putExtra("Clock_name","睡觉");
                break;
            case R.id.relativeLayout_clock_type_3:
                intent.putExtra("Clock_Type","3");
                intent.putExtra("Clock_name","喝牛奶");
                break;
            case R.id.relativeLayout_clock_type_4:
                intent.putExtra("Clock_Type","4");
                intent.putExtra("Clock_name","吃水果");
                break;
            case R.id.relativeLayout_clock_type_5:
                intent.putExtra("Clock_Type","5");
                intent.putExtra("Clock_name","起床");
                break;
            case R.id.relativeLayout_clock_type_6:
                intent.putExtra("Clock_Type","6");
                intent.putExtra("Clock_name","运动");
                break;
            case R.id.relativeLayout_clock_type_7:
                intent.putExtra("Clock_Type","7");
                intent.putExtra("Clock_name","补叶酸");
                break;
            case R.id.relativeLayout_clock_type_8:
                intent.putExtra("Clock_Type","8");
                intent.putExtra("Clock_name","请输入标题");
                break;
        }
        startActivity(intent);
        finish();
    }

}
